pub fn dp_rec_mc(amount: u32) -> u32 {
    let values = vec![1, 2, 5, 10, 20, 30, 50, 100];
    if amount == 0 {
        return 0;
    }
    let mut dp = vec![0; (amount + 1) as usize];
    for i in 1..=amount {
        dp[i as usize] = i;
        for &value in values.iter() {
            if i >= value {
                dp[i as usize] = dp[i as usize].min(dp[(i - value) as usize] + 1);
            }
        }
    }
   
    dp[amount as usize]
    
}
